package registerallocator

class Usuario {

	String nome
	String mail
	String fone	
	String login
	String senha
	boolean enabled
	boolean accountExpired
	boolean accountLocked
	boolean passwordExpired

	static constraints = {
		login blank: false, unique: true
		senha blank: false, password: true
		nome blank: false, size: 5..50
		mail email: true, blank: false
		fone matches: /\d{3}-\d{4}-\d{4}|\(\d{3}\)\s?\d{4}-\d{4}/
	}
}
